﻿using DataBroker.Criteria;
using FirebirdDAO;
using NUnit.Framework;
using DataBroker.Dal;

namespace FirebirdTEst
{
    [TestFixture]
    public class FetchTest
    {
        [SetUp]
        public void SetUp()
        {
            D2Bk.ChangeDatabase("Employee");
        }
        [Test]
        public void SelectFromEmp()
        {
            var emp = D2Bk.Fetch(new Filter(), new Employee());
        }
        [Test]
        public void SelectFromEmpWithSalary()
        {
            Filter f = new Filter();
            f.Add("Employee.Emp_no", 2);
            var emp = D2Bk.Fetch(f, new Employee(new Salary_history()));
        }
    }
}
